# coding=utf-8
import pymongo


class Pagination(object):
    pagno=1;
    pagesize=10;
    totalcount=0;
    totalpage=0;
    result=[];
    def __init__(self, result,length):
        self.result=result
        self.totalcount=length
        self.totalpage=self.totalcount/self.pagesize
    pass